#include "Mine.h"

Mine::Mine(int x, int y)
{
	this->x = x;
	this->y = y;
	clicked = false;
	flagged = false;
}

TYPE Mine::GetType()
{
	return type;
}

bool Mine::IsClicked()
{
	return clicked;
}

bool Mine::IsFlagged()
{
	return flagged;
}

void Mine::SetSuroundingMines(int amount)
{
	surroundingMines = amount;	
}

void Mine::SetType(TYPE type)
{
	this->type = type;
}

void Mine::Click()
{
	this->clicked = true;
}

void Mine::Flag()
{
	if(flagged)
		flagged = false;
	else
		flagged = true;
}

void Mine::Reset()
{
	this->type = NOTHING;
	this->clicked = false;
	this->flagged = false;
}